#include "cardreader.h"

using namespace GASPUMP;

cardreader::cardreader(void)
{
}

void cardreader::ON()
{
	cardreader_status=Ready;
}

void cardreader::OFF()
{
	cardreader_status=Not_Ready;
}

cardreader::cardreader(long crd_num,cardtype type,int pin_zip)
	:c_num (crd_num), m_type(type), pinzip(pin_zip)
{	
	/*c_num=crd_num;
    m_type=type;
	pinzip=pin_zip;*/
}
	
long cardreader:: getcardnum() const
{
	return c_num;
}
	
crd_stat cardreader:: getstate() const
{
	return cardreader_status;
}

int  cardreader::getpinzip() const
{
	return pinzip;
}
	
bool cardreader:: check_pinzip(int pin) const
{
	return true;
}
	
cardreader::~cardreader(void)
{
}
